package com.rd.student.jiaji.class4.suyan.zrrd.homework;

public class 买小鸡 {
    public static void main(String[] args) {
        int sum = 100, a = 0, b = 0;
       for (a = 0; a <=20; a++) {
            for (b = 0; b <= 33; b++) {
                for (double c=0;c<=300;c+=3){
                    if ( a+b+c==sum&&5*a+3*b+c/3==100) {
                        System.out.println("公鸡"+a);
                        System.out.println("母鸡"+b);
                        System.out.println("小鸡"+c);
                    }
                }

            }
        }




    }
}
